package com.suda.sudaexamsystem.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 试卷
 */
public class ExamPaper {
    private int id;
    private String name;
    // 试卷满分
    private BigDecimal score;
    // 所属班级
    private Clazz clazz;
    // 试卷题目
    private List<Question> questionList = new ArrayList<>();

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Clazz getClazz() {
        return clazz;
    }

    public void setClazz(Clazz clazz) {
        this.clazz = clazz;
    }

    public List<Question> getQuestionList() {
        return questionList;
    }

    public void setQuestionList(List<Question> questionList) {
        this.questionList = questionList;
    }

    @Override
    public String toString() {
        return "ExamPaper{" +
                "id=" + id +
                ", name='" + name + '\'' +
//                ", clazzId=" + clazz.getId() +
                ", score=" + score +
                ", questionList=" + questionList +
                '}';
    }
}
